package com.dwb.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;
import java.math.BigDecimal;
/**
 * @author manke
 * @date 2020-06-26 12:36:37
 * @email
 */
@Data
@ApiModel("商品")
public class SGoodsDto implements Serializable {

        @ApiModelProperty(value = "自增id")
        @Id
        @GeneratedValue(strategy = GenerationType.IDENTITY)
        private Integer id;

        @ApiModelProperty(value = "品牌id")
        private Integer brandId;

        @ApiModelProperty(value = "标题")
        private String title;

        @ApiModelProperty(value = "标题颜色")
        private String titleColor;

        @ApiModelProperty(value = "简述")
        private String simpleDesc;

        @ApiModelProperty(value = "型号")
        private String model;

        @ApiModelProperty(value = "产地（地区省id）")
        private Integer placeOrigin;

        @ApiModelProperty(value = "库存（所有规格库存总和）")
        private Integer inventory;

        @ApiModelProperty(value = "库存单位")
        private String inventoryUnit;

        @ApiModelProperty(value = "封面图片")
        private String images;

        @ApiModelProperty(value = "原价（单值:10,区间:10.00-20.00）一般用于展示使用")
        private String originalPrice;

        @ApiModelProperty(value = "最低原价")
        private BigDecimal minOriginalPrice;

        @ApiModelProperty(value = "最大原价")
        private BigDecimal maxOriginalPrice;

        @ApiModelProperty(value = "销售价格（单值:10,区间:10.00-20.00）一般用于展示使用")
        private String price;

        @ApiModelProperty(value = "最低价格")
        private BigDecimal minPrice;

        @ApiModelProperty(value = "最高价格")
        private BigDecimal maxPrice;

        @ApiModelProperty(value = "购买赠送积分")
        private Integer giveIntegral;

        @ApiModelProperty(value = "最低起购数量 （默认1）")
        private Integer buyMinNumber;

        @ApiModelProperty(value = "最大购买数量（最大数值 100000000,小于等于0或空则不限）")
        private Integer buyMaxNumber;

        @ApiModelProperty(value = "是否扣减库存（0否,1是）")
        private Byte isDeductionInventory;

        @ApiModelProperty(value = "是否上架（下架后用户不可见,0否,1是）")
        private Byte isShelves;

        @ApiModelProperty(value = "是否首页推荐（0否,1是）")
        private Byte isHomeRecommended;

        @ApiModelProperty(value = "电脑端详情内容")
        private String contentWeb;

        @ApiModelProperty(value = "相册图片数量")
        private Byte photoCount;

        @ApiModelProperty(value = "销量")
        private Integer salesCount;

        @ApiModelProperty(value = "访问次数")
        private Integer accessCount;

        @ApiModelProperty(value = "短视频")
        private String video;

        @ApiModelProperty(value = "首页推荐图片")
        private String homeRecommendedImages;

        @ApiModelProperty(value = "是否存在多个规格（0否,1是）")
        private Boolean isExistManySpec;

        @ApiModelProperty(value = "规格基础数据")
        private String specBase;

        @ApiModelProperty(value = "虚拟商品展示数据")
        private String fictitiousGoodsValue;

        @ApiModelProperty(value = "SEO标题")
        private String seoTitle;

        @ApiModelProperty(value = "SEO关键字")
        private String seoKeywords;

        @ApiModelProperty(value = "SEO描述")
        private String seoDesc;

        @ApiModelProperty(value = "是否已删除（0 未删除,大于0则是删除时间）")
        private Integer isDeleteTime;

        @ApiModelProperty(value = "添加时间")
        private Integer addTime;

        @ApiModelProperty(value = "更新时间")
        private Integer updTime;

        @ApiModelProperty(value = "是否是服务产品(0否，1是)")
        private Integer isService;

        @ApiModelProperty(value = "手机端保障详情")
        private String baozhangApp;

        @ApiModelProperty(value = "商品标识")
        private Integer serviceType;

        @ApiModelProperty(value = "名称")
        private String name;
        @ApiModelProperty(value = "分类id")
        private Integer categoryId;

}

